package com.sky.service;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;


public interface DishService {

    PageResult queryPage(DishPageQueryDTO dishPageQueryDTO);

    @AutoFill(OperationType.INSERT)
    void addDishWithFalvor(DishDTO dishDTO);

    void deleteDishes(Long[] ids);

    DishVO getDishVO(Long id);

    void updateDishAndFalvors(DishVO dishVO);


    List<Dish> querydishlistByCategoryId(Long categoryId);
}
